package com.frank.im.bean;

import java.util.Comparator;

public class MsgSortComparator<T> implements Comparator<T> {

	@Override
	public int compare(T lhs, T rhs) {
		BaseComparator a = (BaseComparator) lhs;
		BaseComparator b = (BaseComparator) rhs;
		return (a.getLevel() - b.getLevel());
	}

}
